﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Chat
{
    /// <summary>
    /// The data, that describes the chat textual message.
    /// </summary>
    [Serializable]
    public class MessageData
    {
        /// <summary>
        /// User the message sent to.
        /// The special value NickName.Broadcast used, when the message sent
        /// for all chat users.
        /// </summary>
        public NickName To { get; protected set; }
        /// <summary>
        /// The message body, the text itself.
        /// </summary>
        public string Message { get; protected set; }
        /// <summary>
        /// User, sent the message.
        /// </summary>
        public NickName Sender { get; protected set; }

        public MessageData(NickName to, string message, NickName sender)
        {
            To = to;
            Message = message;
            Sender = sender;
        }
    }
}
